import clipboard3 from "vue-clipboard3"
const { toClipboard } = clipboard3()
const copy = async (text: string) => {
  try {
    await toClipboard(text)
    ElMessage.success("复制成功!")
  } catch (error) {
    ElMessage.error("复制失败!")
  }
}
export default copy
